package jdk.observer;import java.util.Observable;import java.util.Observer;public class JingDongObserver implements Observer {    public void update(Observable o,Object product){        String newProduct = (String)product;        System.out.println("发送新产品[" + newProduct + "]同步到京东商城");    }}